﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using KPIS.GERP.GHRMS.DAL;
using KPIS.GERP.GHRMS.IBLL;
using KPIS.GERP.GHRMS.IDAL;
using KPIS.GERP.GHRMS.DALFactory;

namespace KPIS.GERP.GHRMS.BLL
{
    public class HRMKeyPerformanceAreaListBLL : IHRMKeyPerformanceAreaListBLL
    {
        private static readonly IHRMKeyPerformanceAreaListDAL DAL = DataAccess.CreateKeyArea();

        public DataTable ListKeyArea()
        {
            return DAL.ListKeyArea();
        }

        public DataTable LoadGridKeyArea(int pos_seq)
        {
            return DAL.LoadGridKeyArea(pos_seq);
        }

        public DataTable LoadKeyAreaDetail(int kpa_seq)
        {
            return DAL.LoadKeyAreaDetail(kpa_seq);
        }

        public void UpdateKeyArea(int kpa_seq, int key_area, string description, Nullable<int> weight, string create_by)
        { 
            DAL.UpdateKeyArea(kpa_seq, key_area, description, weight, create_by);
        }

        public void InsertKeyArea(int pos_seq, int key_area, string description, Nullable<int> weight, string create_by)
        { 
            DAL.InsertKeyArea(pos_seq, key_area, description, weight, create_by);
        }

        public void DeleteKeyArea(int kpa_seq, string created_by)
        {
            DAL.DeleteKeyArea(kpa_seq, created_by);
        }
    }
}
